MPI_COMPILE_FLAGS = $(shell mpic++ --showme:compile)
MPI_LINK_FLAGS = $(shell mpic++ --showme:link) -fopenmp

CC=g++-4.2

all: main.cpp random_words.cpp read_words.cpp
	$(CC) -g $(MPI_COMPILE_FLAGS) main.cpp random_words.cpp read_words.cpp $(MPI_LINK_FLAGS) -o main
